package com.hksj.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Properties implements Serializable {
    @ApiModelProperty("jetlinks 默认采集量字段")
    private Date ts;

    @ApiModelProperty("创建时间")
    private Double createTime;

    @ApiModelProperty("数字值")
    private String numberValue;

    @ApiModelProperty("属性值类型")
    private String type;

    @ApiModelProperty("属性值")
    private String value;

    @ApiModelProperty("设备id")
    private String deviceId;

    @ApiModelProperty("设备属性名称")
    private String property;

    @TableField(exist = false)
    @ApiModelProperty("设备属性中文名称")
    private String propertyName;

    @TableField(exist = false)
    @ApiModelProperty("单位")
    private String unit;

    public Date getCreateTime() {
        return new Date(createTime.longValue());
    }
}
